package com.fenghongzhang.day004;

import android.os.Bundle;

import androidx.fragment.app.Fragment;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;



/**
 * A simple {@link Fragment} subclass.
 */
public class BlankFragment4 extends Fragment {
    private TextView fgText;

    public BlankFragment4() {
        // Required empty public constructor
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {

        View inflate = inflater.inflate(R.layout.fragment_blank4, container, false);
        fgText = (TextView) inflate.findViewById(R.id.fg_text);

        Bundle bundle = getArguments();
        if(bundle != null){
            String key = bundle.getString("key");
            fgText.setText(key);
        }

        return inflate;
    }
}
